import os
#https://jingyan.baidu.com/article/a3761b2bc78d731576f9aaa5.html
my_path=r'D:\OneDrive - xKx\虾皮助理\数据库'

def bianli(rootDir):
    for root,dirs,files in os.walk(rootDir):
        for file in files:
            print(os.path.join(root,file))
        for dir in dirs:
            bianli(dir)
rootDir='D:\OneDrive - xKx\虾皮助理\数据库'
bianli((rootDir))
